package com.icss.day06webmvc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

@Controller
public class HelloController {

    // mvc注解
    @RequestMapping("hello.action")
    @ResponseBody
    public String hello(String sname) {

        return "hello" + sname;
    }
}
